# -*- coding:utf-8 -*-
class Solution:
    def jumpFloor(self, number):
        # write code here
        # 跳台阶问题类似于斐波那契数列
        if number == 0:
            return 0
        if number == 1:
            return 1
        if number == 2:
            return 2
        jump = [1,2]
        for _ in range(number-3):
            jump.append(sum(jump))
            jump.pop(0)
        return sum(jump)